package io;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;

public class Studengt implements Serializable {
    private  String name;
    private  int age;
    private String genter;
    private transient String[] otherInfo;
    public Studengt() {
    }

    public Studengt(String name, int age, String genter, String[] otherInfo) {
        this.name = name;
        this.age = age;
        this.genter = genter;
        this.otherInfo = otherInfo;
    }
    @Override
    public int hashCode() {
        int result = Objects.hash(name, age, genter);
        result = 31 * result + Arrays.hashCode(otherInfo);
        return result;
    }

    @Override
    public String toString() {
        return "Studengt{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", genter='" + genter + '\'' +
                ", otherInfo=" + Arrays.toString(otherInfo) +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGenter() {
        return genter;
    }

    public void setGenter(String genter) {
        this.genter = genter;
    }

    public String[] getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String[] otherInfo) {
        this.otherInfo = otherInfo;
    }
}
